using System;
using System.Collections.Generic;
using System.Text;

namespace RapidHDL
{
    public static class IOSpikingNetwork
    {
        public static void ConnectSynapse(int piInputAddress, int piNeuron, bool pbPotentiated)
        {
            FPGABlock oBlock = new FPGABlock();
            if (pbPotentiated)
                oBlock.AddEntry(piInputAddress, 5, (uint)piNeuron, true);
            else
                oBlock.AddEntry(piInputAddress, 6, (uint)piNeuron, true);

            IOInterface.PostFPGA(oBlock);
        }

        public static void MainReset()
        {
            FPGABlock oBlock = new FPGABlock();
            oBlock.AddEntry(0, 15, 0, true);
            IOInterface.PostFPGA(oBlock);
        }
    }
}
